Problem Note 47215: Using SAS® date formats as labels in a multilabel format definition generates incorrectly formatted output from PROC MEANS and PROC TABULATE
Formatting a variable with a multilabel format that uses SAS date formats as labels generates incorrect date values in your PROC MEANS and PROC TABULATE output. An example of creating this type of format is shown below.
proc format;
value dt_test (multilabel)
'01may2012'd - '30sep2012'd = [monyy5.]
'01jun2012'd - '31jul2012'd = [yymmdds10.]
;
run;
|
An example of the incorrect output is shown below.
N
report_dt Obs N
------------------------
1960/01/01 143 143
DEC59 88 88
JAN60 283 283
------------------------
----------------------------------------
| report_dt |
|--------------------------------------|
| 1960/01/01 | DEC59 | JAN60 |
|------------+------------+------------|
| N | N | N |
|------------+------------+------------|
| 143.00| 88.00| 283.00|
----------------------------------------
|
There is currently no circumvention for this problem.
Operating System and Release Information
SAS System | N/A | Tru64 UNIX | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Solaris for x64 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Solaris | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
OpenVMS Alpha | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Linux on Itanium | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Linux for x64 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Linux | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
HP-UX IPF | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
HP-UX | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
AIX | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Windows Vista for x64 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Windows Vista | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft® Windows® for x64 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
z/OS | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Formatting a variable with a multilabel format that has SAS date formats as labels generates incorrect date values in your PROC MEANS and PROC TABULATE output.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2012-08-14 09:17:05 |
Date Created: | 2012-08-10 16:33:56 |